package dto;

import java.util.Map;

public class Point {
	private int id;
	protected Map<Integer, Double> linearSpacePoint;

	public void setLinearSpacePoint(Map<Integer, Double> linearSpacePoint) {
		this.linearSpacePoint = linearSpacePoint;
	}

	public Map<Integer, Double> getLinearSpacePoint() {
		return linearSpacePoint;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
	
	public double getValue(int dim) {
		if(linearSpacePoint.containsKey(dim)) {
			return linearSpacePoint.get(dim);
		} else {
			return 0;
		}
	}
}
